﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyNganHangDe.DAL;
using QuanLyNganHangDe.DAL.Models;

namespace QuanLyNganHangDe.BLL
{
    partial class BizNamHoc
    {
        internal static List<NamHoc> GetListNamHoc()
        {
            using (var context = QLNHD_KHContext.GetContext())
            {
                var ls = from nh in context.NamHocDbSet
                         orderby nh.NamHoc1 descending
                         select nh;
                return ls.ToList();
            }
        }
    }
}
